// clientDlg.h : header file
//

#pragma once
#include "afxwin.h"
#include "stamessage.h"
#include "ListenSocket.h"

#define REQUEST_TIMER 0x1234

// CclientDlg dialog
class CclientDlg : public CDialog
{
// Construction
public:
	CclientDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_CLIENT_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButton();
	CButton m_IDC_BUTTON_START;
	CListenSocket ListenSocket;
	CListenSocket workSocket;
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	BOOL sendRequestPanel(void);
	int sendAlarm(STAMSG * pstamsg);
	CComboBox m_panelsel;
	CComboBox m_alarmsel;
	afx_msg void OnBnClickedSendAlarm();
	afx_msg void OnBnClickedResumeAlarm();
	CListBox m_alarmlist;
	CMap<int,int,STAMSG,STAMSG> alarmList;
};
